import request from '@/utils/request'

// 查询章节知识点关联列表
export function listChapter_knowledge_points(query) {
  return request({
    url: '/teach/chapter_knowledge_points/list',
    method: 'get',
    params: query
  })
}

// 查询章节知识点关联详细
export function getChapter_knowledge_points(id) {
  return request({
    url: '/teach/chapter_knowledge_points/' + id,
    method: 'get'
  })
}

// 新增章节知识点关联
export function addChapter_knowledge_points(data) {
  return request({
    url: '/teach/chapter_knowledge_points',
    method: 'post',
    data: data
  })
}

// 修改章节知识点关联
export function updateChapter_knowledge_points(data) {
  return request({
    url: '/teach/chapter_knowledge_points',
    method: 'put',
    data: data
  })
}

// 删除章节知识点关联
export function delChapter_knowledge_points(id) {
  return request({
    url: '/teach/chapter_knowledge_points/' + id,
    method: 'delete'
  })
}
